package com.ca.demo.model.sys;

import com.ca.demo.common.IdWorker;
import com.ca.demo.common.base.BaseEntity;

import javax.persistence.Table;

/**
 * @Author XieLei
 * @Date 2017/6/22 10:34
 */
@Table(name = "sys_user")
public class User extends BaseEntity<Long> {

    private String username;

    private String password;

    private String email;

    private Boolean enabled;

    @Override
    protected Long newId() {
        return IdWorker.getId();
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }
}
